package worldinruin.core.imp.soldiers;

import worldinruin.core.ICloseCombatSoldier;
import worldinruin.core.IResources;
import worldinruin.core.ISoldier;
import worldinruin.core.IType;
import worldinruin.core.imp.Resources;

public class Cavalier implements ICloseCombatSoldier {
	
	private static int attack = 50;
	private static int defense = 35;
	private static int speed = 4;
	private IType soldierType = SoldierTypes.CAVALIER;
	private static String name = "Cavalier";
	private static IResources price = new Resources(10,10,10,10);

	@Override
	public int getAttack(){
		return attack;
	}
	
	@Override
	public int getDefense(){
		return defense;		
	}
	
	@Override
	public int getSpeed(){
		return speed;
	}

	@Override
	public IResources getPrice() {
		return price;
	}
	
	@Override
	public boolean equals(Object o){
		return getClass().equals(o.getClass());
	}
	
	@Override
	public int hashCode(){
		return getClass().hashCode();
	}
	
	@Override
	public IType getSoldierType() {
		return soldierType;
	}
	
	@Override
	public int compareTo(ISoldier s) {
		return new Integer(getDefense()).compareTo(new Integer(s.getDefense()));
	}



}
